package com.myapp.ruyixing.http;

import org.json.JSONObject;

import com.myapp.ruyixing.model.RankCategory;

public class RankCategoryParser extends RYJSONParser {

	@Override
	public Object parse(JSONObject jsonObject) {
		if (getErrno(jsonObject) != NO_ERROR) {
			return null;
		}

		RankCategory category = loadByGson(jsonObject,
				RankCategory.class);

		return category;
	}
}
